package com.atguigu.impl;

import com.atguigu.interf.Calculator;

/**
 * @author 伟哥
 * @date 2021-05-01 9:34
 */
public class MyMathCalculator implements Calculator {
    @Override
    public int add(int i, int j) {
        /*
            这条代码，还是耦合
            LogUtils.logStart(i,j);
        */

        int result = i + j ;

        //System.out.println("结果是："+result);
        return result;
    }

    @Override
    public int sub(int i, int j) {
        //System.out.println("当前运行是:sub，运行的参数是："+i+","+j);
        int result = i - j ;
        //System.out.println("结果是："+result);
        return result;
    }

    @Override
    public int mul(int i, int j) {
        int result = i * j ;
        return result;
    }

    @Override
    public int div(int i, int j) {
        int result = i / j ;
        return result;
    }
}
